package net.techwatch.gwt.mvp.client;

import net.techwatch.gwt.mvp.client.view.MessageForm;

import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.dom.client.HasKeyUpHandlers;
import com.google.gwt.user.client.ui.HasValue;
import com.google.gwt.user.client.ui.Widget;

public class MockMessageFormDisplay implements MessageForm.Display {
	
	MockHasValue<String> namedField = new MockHasValue<String>();
	MockHasClickHandlers sendButton = new MockHasClickHandlers();
	HasKeyUpHandlers namedFieldHandlers = new MockHasKeyUpHandlers();
	
	@Override
	public HasValue<String> getNamedField() {
		return namedField;
	}

	@Override
	public HasKeyUpHandlers getNamedFieldHandlers() {
		return namedFieldHandlers;
	}

	@Override
	public HasClickHandlers getSendButton() {
		return sendButton;
	}

	@Override
	public Widget getWidget() {
		// TODO Auto-generated method stub
		return null;
	}

}
